const { log } = require('console');
const fs = require('fs');
const path = require('path');
const dirname = path.resolve(__dirname, './myFile')
// 获取文件夹下的文件名
async function test() {
    const paths =  await fs.promises.readdir(dirname)
    log(paths)
 }
test()